<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>1-6 bfc</title>
  <style>
    .icon {
      display: inline-block;
      width: 20px;
      height: 20px;
      background: url(https://f4.market.mi-img.com/download/MiVip/06c12746ba8b54ba42d9ea383c0ec16b533989c5d/share-logo.png) no-repeat center/cover;
      /* 设置基线为居中对齐 */
      vertical-align: middle;
    }
  </style>
</head>

<body>
  <div class="box">
    <i class="icon"></i>购物车
  </div>
</body>

</html>